let throttle = function (Fn, time) {
  let lastTime = 0;

  let _trottle = function () {
    nowTime = new Date().getTime();
    let interval = time - (nowTime - lastTime);

    if (interval <= 0) {
      Fn();
      lastTime = new Date().getTime();
    }
  };

  return _trottle;
};
